package com.ruoyi.web.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 临床招募新闻对象 clinical_news
 *
 * @author drx
 * @date 2024-04-22
 */
@ApiModel("临床招募新闻")
public class ClinicalNews extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private Long id;

    /**
     * 临床招募id
     */
    @Excel(name = "临床招募id")
    @ApiModelProperty("临床招募id")
    private Long clinicalId;

    /*
    * 临床招募名称
    * */
    private String clinicalName;

    /**
     * 文章标题
     */
    @Excel(name = "文章标题")
    @ApiModelProperty("文章标题")
    private String name;

    /**
     * 文章内容
     */
    @Excel(name = "文章内容")
    @ApiModelProperty("文章内容")
    private String content;

    /**
     * 状态 0 未发布 1 已发布
     */
    @Excel(name = "状态 0 未发布 1 已发布")
    @ApiModelProperty("状态 0 未发布 1 已发布")
    private String state;

    /**
     * 1/头条  2、置顶  3、推荐、4特推
     */
    @Excel(name = "1/头条  2、置顶  3、推荐、4特推")
    @ApiModelProperty("1/头条  2、置顶  3、推荐、4特推")
    private String label;

    /**
     * 浏览量
     */
    @Excel(name = "浏览量")
    @ApiModelProperty("浏览量")
    private Long hits;

    /**
     * 关键词
     */
    @Excel(name = "关键词")
    @ApiModelProperty("关键词")
    private String keyword;

    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    @ApiModelProperty("创建人名称")
    private String createName;

    /**
     * 更新人名称
     */
    @Excel(name = "更新人名称")
    @ApiModelProperty("更新人名称")
    private String updateName;

    /**
     * 是否删除（0否；1是）
     */
    @ApiModelProperty("是否删除（0否；1是）")
    private String delFlag;

    private Date startTime;

    private Date endTime;

    public String getClinicalName() {
        return clinicalName;
    }

    public void setClinicalName(String clinicalName) {
        this.clinicalName = clinicalName;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setClinicalId(Long clinicalId) {
        this.clinicalId = clinicalId;
    }

    public Long getClinicalId() {
        return clinicalId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public void setHits(Long hits) {
        this.hits = hits;
    }

    public Long getHits() {
        return hits;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("clinicalId", getClinicalId())
                .append("name", getName())
                .append("content", getContent())
                .append("remark", getRemark())
                .append("state", getState())
                .append("label", getLabel())
                .append("hits", getHits())
                .append("keyword", getKeyword())
                .append("createBy", getCreateBy())
                .append("createName", getCreateName())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateName", getUpdateName())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
